#ifndef __ANALIZE_H_
#define __ANALIZE_H_

typedef void* analize_handle;

analize_handle analize_open(u_int16_t samples);
void analize_close(analize_handle handle);

void analize_filldata(analize_handle handle, int16_t* data, u_int16_t skip, u_int16_t step);
void analize_setrate(analize_handle handle, u_int16_t rate);

void analize_execute(analize_handle handle);

double analize_average(analize_handle handle);
double analize_frequency(analize_handle handle);

#endif
